
#对b站的操作，进行输入等待，输入文字，试着进行跳转
#失败的代码,因为那个button按钮是不可点击的fuck



from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait

exepath=r'E:\programlibs\chromedriver\chromedriver.exe'


driver=webdriver.Chrome(exepath)

driver.get('https://www.bilibili.com/')

try:
    global element
    element=WebDriverWait(driver,36000).until(
        EC.element_to_be_clickable((By.CLASS_NAME,'search-submit'))
    )
except:
    print('等待失败')
inputTag = driver.find_element_by_class_name('search-keyword')
inputTag.send_keys('running man容陷爱')
print('hello world')
element.click()
